package com.itheima.demo.demo9;

import java.io.File;

public class fengdou {
    public static void main(String[] args) {

        File file=new File("D:\\day01\\01_视频");
        File absoluteFile = file.getAbsoluteFile();
        System.out.println(absoluteFile+"这个返回的是绝对值路径"); //
        String path = file.getPath();
        System.out.println(path);
        System.out.println("=============");
        File file2=new File("01_视频");
        boolean exists = file2.exists();
        System.out.println(exists);
        System.out.println("-----------------");
        boolean file1 = file2.isFile();
        System.out.println(file1);
        String path1 = file2.getPath();
        System.out.println(path1);
        boolean directory = file2.isDirectory();
        System.out.println(directory);



    }





}
